import { LogUtil } from './core';

/**
 * 安装模型包
 *
 * @author chitanda
 * @date 2022-09-22 21:09:22
 * @export
 * @param {{ development: boolean }} [config={ development: false }]
 */
export function install(
  config: { development: boolean } = { development: false },
): void {
  if (config) {
    const { development } = config;
    if (development === false) {
      LogUtil.log = function () {};
      LogUtil.warn = function () {};
      LogUtil.error = function () {};
    }
  }
}
